import Vue from 'vue'
import App from './App'
import store from './store'
import util from './common/util.js'
import { get, post } from './utils/request'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'

Vue.config.productionTip = false

App.mpType = 'app'

// 配置 dayjs
dayjs.locale('zh-cn')
Vue.prototype.$dayjs = dayjs

Vue.prototype.$store = store
Vue.prototype.$util = util
Vue.prototype.$get = get
Vue.prototype.$post = post

import uView from 'uview-ui'
Vue.use(uView)

const app = new Vue({
	store,
    ...App
})
app.$mount()
